/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.knife.service;

import java.util.Timer;

/**
 *
 * @author Administrator
 */
public class PublishService {
	public static void main(String[] args) {
        //发布服务轮训周期
        int realtime = 1;//分钟
        realtime = realtime*1000*30;
        Timer timer = new Timer();
        timer.schedule(new PublishTask(),1000,realtime);
    }
}